//
//  XTBDNetWork.h
//  xingtongbeidou
//
//  Created by 赵国成 on 15/2/26.
//  Copyright (c) 2015年 mac mini01. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    XTBDRequestDataOK,
    XTBDRequestDataError,
    XTBDRequestDataTimeOut,
    XTBDRequestDataLogin,
    XTBDRequestDataPermission
}RequestStatus;

@interface Result : NSObject

@property(assign)RequestStatus status;
@property(retain,nonatomic)NSString *msg;
@property(retain,nonatomic)NSMutableArray *dataArr;
@property(retain,nonatomic)NSMutableDictionary *dataDic;
@property(retain,nonatomic)NSString *dataStr;
@property(nonatomic)float doubleStr;
@end

@interface XTBDNetWork : NSObject

/*
 
 [XTBDNetWork PostUrl:ORDER_GOODS_LIST Parameter:[NSMutableDictionary dictionaryWithObjectsAndKeys:@"10",@"currentnum",@"1",@"currentpage", nil] andData:^(Result *result) {
 
 if (result.status == XTBDRequestDataOK) {
 
 }
 if (result.status == XTBDRequestDataError) {
 
 }
 if (result.status == XTBDRequestDataLogin) {
 
 }
 }];
 
 */
+(void)PostUrl:(NSString*)url Parameter:(NSMutableDictionary*)dictionary andData:(void(^)(Result *result))block;
+(void)taglistUrl:(NSString *)url Parameter:(NSMutableDictionary *)dictionary andData:(void (^)(Result *result))block;
+(SecIdentityRef)identityWithCert;
+(void)PostAudioeUrl:(NSString*)url Parameter:(NSMutableDictionary*)dictionary andData:(void(^)(Result *result))block;
+(void)zhinajin:(NSString*)url Parameter:(NSMutableDictionary*)dictionary andData:(void(^)(Result *result))block;
+(void)weatherUrl:(NSString *)url Parameter:(NSMutableDictionary *)dictionary andData:(void (^)(Result *))block;
+(void)mapSeachUrl:(NSString *)url Parameter:(NSMutableDictionary *)dictionary andData:(void (^)(Result *))block;
+(void)PostVideoUrl:(NSString*)url Parameter:(NSMutableDictionary*)dictionary andData:(void(^)(Result *result))block;
+(void)PostImageUrl:(NSString*)url Parameter:(NSMutableDictionary*)dictionary andDic:(NSDictionary*)userDic andData:(void(^)(Result *result))block;
+(void)PostImageUrl:(NSString*)url Parameter:(NSMutableDictionary*)dictionary andData:(void(^)(Result *result))block;
+(void)PostOrderAudioeUrl:(NSString*)url Parameter:(NSMutableDictionary*)dictionary andData:(void(^)(Result *result))block;
//正则身份证号
+(BOOL)IdCodeNum:(NSString*)str;
//手机号
+(BOOL)checkInputAccount:(NSString *)text;
//固定电话
+(BOOL)checkInputTelephone:(NSString*)text;
//验证密码
+(BOOL)checkInputPassword:(NSString *)str;

@end
